﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OnlineManagement.Model
{
    /// <summary>
    /// HogPurchase:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class HogPurchase
    {
        public HogPurchase()
        { }
        #region Model
        private int _purchaseid;
        private int _hoggeryid;
        private int? _purchasehogid;
        private Guid _purchasesowid;
        private int? _purchaseaccount;
        private decimal? _unitprice;
        private decimal? _totalweight;
        private DateTime? _purchasedate;
        private string _comment;
        /// <summary>
        /// 
        /// </summary>
        public int PurchaseID
        {
            set { _purchaseid = value; }
            get { return _purchaseid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int HoggeryID
        {
            set { _hoggeryid = value; }
            get { return _hoggeryid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PurchaseHogID
        {
            set { _purchasehogid = value; }
            get { return _purchasehogid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Guid PurchaseSowID
        {
            set { _purchasesowid = value; }
            get { return _purchasesowid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PurchaseAccount
        {
            set { _purchaseaccount = value; }
            get { return _purchaseaccount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? UnitPrice
        {
            set { _unitprice = value; }
            get { return _unitprice; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? TotalWeight
        {
            set { _totalweight = value; }
            get { return _totalweight; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? PurchaseDate
        {
            set { _purchasedate = value; }
            get { return _purchasedate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }


        public string PigCategory
        {
            get;
            set;
        }
        public string BitID { get; set; }
        public int? PhaseID { get; set; }
        public Guid? PigPenId { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public Guid? TypeID { get; set; }

        public DateTime? Birthday { get; set; }

        public int UnitName { get; set; }

        /// <summary>
        /// 是否属于合并(向已有的圈中新添加，或者整窝添加), 0-否,1-是合并
        /// </summary>
        public bool IsCombine { get; set; }

        #endregion Model

    }
}
